package cn.wang.entity.sysadmin;


import java.util.Set;

/**
 * Created by john on 2017/11/2.
 */
public class User extends BaseEntity {
    /*
    * create table USER_P  (
   USER_ID              VARCHAR2(40)                    not null,
   DEPT_ID              VARCHAR2(40),
   USER_NAME            VARCHAR2(50),
   PASSWORD             VARCHAR2(64),
   STATE                INT,
   CREATE_BY            VARCHAR2(40),
   CREATE_DEPT          VARCHAR2(40),
   CREATE_TIME          TIMESTAMP,
   UPDATE_BY            VARCHAR2(40),
   UPDATE_TIME          TIMESTAMP,
   constraint PK_USER_P primary key (USER_ID)
);
    *
    * */
    private String id;
    private String userName;
    private String passWord;
    private Integer state;//状态 0为默认停用
    private UserInfo userInfo;//扩展信息
    private Dept dept;//所属部门
    private Set<Role>roleSet;//角色
    //验证码
    private String code;

    public Set<Role> getRoleSet() {
        return roleSet;
    }

    public void setRoleSet(Set<Role> roleSet) {
        this.roleSet = roleSet;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Dept getDept() {
        return dept;
    }
    public void setDept(Dept dept) {
        this.dept = dept;
    }
    public String getId() {
        return id;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }
    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

}
